package com.wjx.shoolnews.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloCOntroller {

    @ResponseBody  // 把返回的结果给浏览器
    @RequestMapping("/hello")
    public String hello(){
        return "hello world";
    }
}
